<#assign t=JspTaglibs["/META-INF/tld/tiles-jsp.tld"] />
<#assign s=JspTaglibs["/META-INF/tld/struts-tags.tld"] />
<@s.url value="" var="cntxpth"/>
<@s.set name="contextPath" value="#cntxpth"  />
<@s.set name="templateName" value="#templateName"/>
<@s.set name="resourcePath">/${contextPath}templates/${templateName}</@s.set>
<@s.div cssClass="grid_8">

<h2><@s.text name="txt.how.to.connect.with.me"/></h2>

<@s.iterator value="contacts">
    <@s.div cssClass="grid_6 box-1">
<#--    <@s.url namespace="/contact" action="view" var="imgUrl">
        <@s.param name="contact.id" value="${id}" />
    </@s.url>-->

    <img src="${img}" alt="email" class="img-border"/>
    <p class="text-2"><@s.a
    href="${link}"
    cssClass="link" rel="nofollow">${value}</@s.a></p>
    </@s.div>
</@s.iterator>
<#--    <@s.div cssClass="grid_6 box-1">
    <img src="${resourcePath}/images/gmail-pencil32.png" alt="email" class="img-border"/>
    <p class="text-2"><@s.a
    href="mailto:michael.komarichin@gmail.com"
    cssClass="link" target="_blank" rel="nofollow">michael.komarichin@gmail.com</@s.a></p>
    </@s.div>
    <@s.div cssClass="grid_6 box-1">
    <img src="${resourcePath}/images/skype-pencil32.png" alt="skype" class="img-border"/>

    <p class="text-2">
        <@s.a
        href="skype:michael.komarichin.?chat"
        cssClass="link" target="_blank" rel="nofollow">michael.komarichin.</@s.a></p>
    </@s.div>-->


</@s.div>
<@s.div cssClass="grid_4">

<h2><@s.text name="txt.contact.form"/></h2>

    <@s.form id="form" namespace="/contact" action="feedBack" method="POST">
    <fieldset>
        <label>
            <@s.textfield value="Name" name="feedBack.name" onblur="if(this.value=='') this.value='Name'"
            onfocus="if(this.value =='Name' ) this.value=''"/>
        </label>
        <label>
            <@s.textfield value="Email" name="feedBack.email" onblur="if(this.value=='') this.value='Email'"
            onfocus="if(this.value =='Email' ) this.value=''"/>
        </label>
        <label>
            <@s.textfield value="Phone" name="feedBack.phone" onblur="if(this.value=='') this.value='Phone'"
            onfocus="if(this.value =='Phone' ) this.value=''"/>
        </label>
        <label>
            <@s.textarea name="feedBack.message" onblur="if(this.value==''){this.value='Message'}"
            onfocus="if(this.value=='Message'){this.value=''}" value="Message"/>
        </label>
        <@s.div cssClass="btns">
            <@s.a href="#" cssClass="button" onclick="document.getElementById('form').reset()"><@s.text name="txt.clear"/></@s.a>
            <@s.a href="#" cssClass="button" onclick="document.getElementById('form').submit()"><@s.text name="txt.send"/></@s.a>
        </@s.div>
    </fieldset>
    </@s.form>

</@s.div>
<@s.div cssClass="clear"></@s.div>

